import React, {Component} from "react";

export default function filterProps(WrapperComponent, color) {
  return class extends Component {
    componentDidMount() {
      console.log('高阶组件 componentDidMount: ', this.props);
    }

    render() {
      return (<div style={{backgroundColor: color}}>
        <WrapperComponent title={'标题'} {...this.props}/>
      </div>)
    }
  }
}
